<template>
	<view>
		<!-- <div class="flex-container"> -->
		  <div class="flex-container">
		    <div class="scroll-item">Item 1</div>
		    <div class="scroll-item">Item 2</div>
		    <div class="scroll-item">Item 3</div>
		    <div class="scroll-item">Item 4</div>
		    <div class="scroll-item">Item 5</div>
		  </div>
		<!-- </div> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
.flex-container {
	margin: 5% auto;
  display: flex;
  overflow-x: scroll;
  width: 90%;
  height: 300rpx;
}

.scroll-item {
  flex: 0 0 auto; /* 不进行扩展或收缩 */
  width: 300rpx;
  height: 70%;
  margin-right: 10px;
  background-color: gray;
  border-radius: 20rpx 20rpx;
}
</style>
